//
//  PostCommentViewController.h
//  OrderSeat
//
//  Created by wangwei on 13-10-9.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ShopHomeViewController.h"

@class PostCommentDataSource;
@class ShopCommentsViewController;
@interface PostCommentViewController : BaseViewController<UITextFieldDelegate,UITextViewDelegate>

@property(nonatomic, strong) UIViewController *parentController;

@property (strong, nonatomic) IBOutlet UITextField *txtPrice;
@property (strong, nonatomic) IBOutlet UITextView *txtComments;

@property (strong, nonatomic) IBOutlet UIScrollView *theScrollview;
@property (strong, nonatomic) IBOutlet UIView *headView;
@property (strong, nonatomic) IBOutlet UIView *bodyView1;
@property (strong, nonatomic) IBOutlet UIView *bodyView2;
@property (strong, nonatomic) IBOutlet UIView *footerView;
@property (strong, nonatomic) IBOutlet UIButton *betterBtn;
@property (strong, nonatomic) IBOutlet UIButton *commonBtn;
@property (strong, nonatomic) IBOutlet UIButton *suggestBtn;
@property (weak, nonatomic) IBOutlet UIButton *submitBtn;

@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) PostCommentDataSource *dataSource;

- (id)initWithShopId:(NSString*)shopId;

@end

@interface PostCommentDataSource : BaseDataSource

@property (strong, nonatomic) PostCommentViewController *viewController;

- (void)postCommentsWithURL:(NSString *)url;

@end
